﻿#pragma once

//实现vtk渲染窗口的功能
#include "DlgBase.h"


//单例模式  
class CreateRectangleDlg: public DlgBase
{
public:
    CreateRectangleDlg(QWidget* parent = nullptr);
    ~CreateRectangleDlg();

    bool create();
    void initUI() override;
    void manageConnections() override;

private:
    double m_point1[3] = { 0, 0, 0 };
    double m_point2[3] = { 1, 0, 0 };
    double m_point3[3] = { 1, 1, 0 };


    MyCoordinateEdit* m_point1Coord = nullptr;
    MyCoordinateEdit* m_point2Coord = nullptr;
    MyCoordinateEdit* m_point3Coord = nullptr;



    QPushButton* m_okBtn = nullptr;   //ok button
    QPushButton* m_cancelBtn = nullptr; //cancel button
};


